<?php use_stylesheet('tablas.css') ?>
<h1>Lista de Aeronaves</h1>

<table>
  <thead class="mostrar_encabezados">
    <tr>
      <th>Matricula</th>
      <th>Tipo de avi&oacute;n</th>
      <th>Serial</th>
	  <th>Editar</th>
	  <th>Eliminar</th>
    </tr>
  </thead>
  <tbody class="mostrar">
    <?php foreach ($Aeronaves as $Aeronave): ?>
    <tr>
      <td><a href="<?php echo url_for('aeronave/show?id='.$Aeronave->getId()) ?>"><?php echo $Aeronave->getMatricula() ?></td>
      <td><?php echo $Aeronave->getTipoAvion() ?></td>
      <td><?php echo $Aeronave->getSerial() ?></td>
	  <td><a href="<?php echo url_for('aeronave/edit?id='.$Aeronave->getId()) ?>" class="imagen"><img src="/images/editar.png" ></a></td>
	  <td class="imagen"><?php echo link_to('<img src="/images/eliminar.png">', 'aeronave/delete?id='.$Aeronave->getId(), array('method' => 'delete', 'confirm' => 'Esta seguro?')) ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <div class="nuevoVuelo"><a href="<?php echo url_for('aeronave/new') ?>">Agregar Aeronave</a></div>
